function getXMLHttpRequest()
{
  var request = false;
    
  try {
    request = new XMLHttpRequest();
  } catch(err1) {
    try {
      request = new ActiveXObject('Msxml2.XMLHTTP');
    } catch(err2) {
      try {
        request = new ActiveXObject('Microsoft.XMLHTTP');                
      } catch(err3) {
        request = false;
      }
    }
  }
  return request;
}


var r = getXMLHttpRequest();

r.open( 'GET', 'status.php', true );
r.onreadystatechange = generateStatus;
r.send(null);

function generateStatus()
{
	if (r.readyState == 4) {
		if (r.status == 200) {
			document.getElementById('onlineplace').innerHTML = r.responseText;
		};
	};
}